//
//  Customer2.h
//  4-6
//
//  Created by Mac OS on 16-4-14.
//  Copyright (c) 2016年 liaomengshi. All rights reserved.
//

#import <Foundation/Foundation.h>

@protocol EatDelegate2  <NSObject>

//必然实现
@required
- (void)pay:(float)money;
- (void)getFood:(NSString *)str;
- (void)drink:(NSString *)str;
//
@optional
- (void)otherMethod;

@end


@interface Customer2 : NSObject

@property (weak,nonatomic) id<EatDelegate2> delegate;
//              非原子操作      必须遵守的协议    代理

-(void)comeToRestorant;
//     去饭店


@end
